﻿CREATE PROCEDURE [TipsLikes_insert]
	@P_1 Int,
	@P_2 Int,
	@P_3 Int,
	@P_4 Bit,
	@P_5 DateTime,
	@sync_row_count Int OUTPUT
AS
BEGIN
SET @sync_row_count = 0; IF NOT EXISTS (SELECT * FROM [TipsLikes_tracking] WHERE [TipLikeID] = @P_1) BEGIN INSERT INTO [TipsLikes]([TipLikeID], [TipID], [UserID], [Liked], [DateTimeStamp]) VALUES (@P_1, @P_2, @P_3, @P_4, @P_5);  SET @sync_row_count = @@rowcount;  END 
END